<div class=page_head>
<h2>New email</h2>
</div>

<%= link_to 'Back', emails_path ,:class=>'button'%>
<%= error_messages_for :email %>

<% form_for(:email, :url => emails_path) do |f| %>
  <div class="FormBlock">
  <table>
    <tr><Td><b>Name</b></td><td><%= f.text_field :name %></td></tr>
    <tr><td><b>Subject</b></td><td><%= f.text_field :subject,:size=>80%></td></tr>
    <tr><td><label for="language"><%='Language'.t%>:</label></td> <td><%=f.select :lang,LANGTYPES%></td></tr>
    <tr><td><b>Body</b></td><td><%= fckeditor_text "email[body]","message"%></td></tr>
  </table>
 <hr>
  <p>
    <%= submit_tag "Create" %>
  </p>
  </div>
<% end %>

